home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global menuAudio, goOn, audioFile, movieFile, goQuick, gTiming, audioPath, gEnvironObj, gSection, gTourWelcome, gTourForwardArrow, gTourBackArrow, gTourVariables
- if objectp(gEnvironObj) then
- firstPath = getAudioFolder(gEnvironObj)
- else
- clearGlobals()
- firstPath = GetStandAoneAudioFolder()
- gSection = getAt(["Navigation", "Searching", "Graphs", "Word"], 2)
- end if
- if the machineType = 256 then
- audioPath = firstPath & "guide\"
- else
- audioPath = firstPath & "guide:"
- end if
- audioFile = []
- movieFile = []
- menuAudio = "none"
- InitMenuButtons()
- goOn = 0
- gTiming = 0
- goQuick = 0
- gTourForwardArrow = new(script("forward arrow"), "arrow rt", "internal", 42, the loc of sprite 42)
- gTourBackArrow = new(script("back arrow class"), "back", "internal", 43, the loc of sprite 43)
- gTourVariables = new(script("Tour Class"))
- end
-
- on exitTour
- global gTourForwardArrow, gTourBackArrow, gTourVariables, gForgetList
- go(400)
- gTourForwardArrow = 0
- gTourBackArrow = 0
- condemn(gTourVariables)
- gTourVariables = VOID
- append(gForgetList, the activeWindow)
- end
-
- on getAudioFile frameNum
- global audioFile, menuAudio, gSection
- case gSection of
- "Overview":
- audioFile = [14: "2100", 20: "2400"]
- menuAudio = "2800"
- "Navigation":
- audioFile = [39: "3201", 51: "3202", 63: "3203", 77: "3204", 80: "3300"]
- menuAudio = "3400"
- "Searching":
- audioFile = [94: "4401", 104: "4402", 112: "4403", 122: "4404", 132: "4405", 141: "4406", 152: "4407", 163: "4408", 185: "4409", 198: "4410", 209: "4411", 230: "4412", 243: "4413", 249: "4414"]
- menuAudio = "4500"
- "Graphs":
- audioFile = [268: "5200", 275: "5302", 280: "5303", 285: "5304", 290: "5305", 295: "5306", 300: "5307", 319: "5400", 323: "5500", 327: "5600", 332: "5701", 337: "5702", 339: "5702b", 342: "5703", 344: "5703b", 357: "5705b", 361: "5800"]
- menuAudio = "5900"
- "Word":
- audioFile = []
- menuAudio = "6600"
- "Credits":
- audioFile = []
- menuAudio = "6600"
- end case
- if count(audioFile) > 0 then
- whichFile = getaProp(audioFile, frameNum)
- end if
- return whichFile
- end
-
- on getMovieFile frameNum
- global movieFile, menuAudio, gSection
- if gSection = "Overview" then
- menuAudio = "2800"
- else
- if gSection = "Navigation" then
- menuAudio = "3400"
- else
- if marker(0) = label("3.3") then
- menuAudio = "3400"
- else
- if gSection = "Searching" then
- menuAudio = "4500"
- else
- if gSection = "Graphs" then
- menuAudio = "5900"
- else
- if gSection = "Word" then
- menuAudio = "6600"
- end if
- end if
- end if
- end if
- end if
- end if
- end
-
- on setHandCursor TempCursorList
- repeat with loopVar = 1 to 48
- if getOne(TempCursorList, loopVar) <> 0 then
- set the cursor of sprite loopVar to [member("hand"), member("hand mask")]
- next repeat
- end if
- set the cursor of sprite loopVar to 0
- end repeat
- end
-
- on GetStandAoneAudioFolder
- pathDelimiter = getPathDelimiter()
- return getParentFolder(the pathName) & "Media" & pathDelimiter & "Audio" & pathDelimiter
- end
-